import axios, { AxiosInstance } from 'axios';

// 创建 axios 实例
const axiosInstance: AxiosInstance = axios.create({
  timeout: 5000, // 设置超时时间
  withCredentials: true // 允许携带 cookie
});

export default axiosInstance;